#!/bin/sh

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
gcc main.c -lwd -g -o main

if [ $? -ne 0 ];then
    echo "Failed: gcc failed, exit"
    exit 1
fi

./main